<!DOCTYPE html>
<html class="um landscape min-width-240px min-width-320px min-width-480px min-width-768px min-width-1024px">
<head>
    <title></title>
    <meta charset="utf-8">
    <meta name="viewport" content="target-densitydpi=device-dpi, width=device-width, initial-scale=1, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
	<link rel="stylesheet" href="css/ui-box.css">
    <link rel="stylesheet" href="css/ui-base.css">
    <link rel="stylesheet" href="css/ui-color.css">
    <link rel="stylesheet" href="css/base.css">
    <link rel="stylesheet" href="css/img.css">

	<script src="js/core/zy_control.js"></script>
    <script src="js/core/zy_click.js"></script>
    <script src="js/core/appframework.js"></script>
    <script src="js/core/exif.js"></script>
    <script src="js/upload.js"></script>
    <script src="js/download.js"></script>
    <script src="js/main.js"></script>
    <script src="js/line.js"></script>
    <script src="js/drag.js"></script>
    <script src="js/core.js"></script>
    <script src="js/res.js"></script>

    <script src="js/course.js"></script>

</head>
<body class="ub ub-ver"> 
	<div id="content" class="ub ub-f1 ub-ver">
		<div id="player" class=""></div>
		<div id="tabTitle" class="ub ufp9 ub-img2 im_tab_bg uptb_p5 c_tab">
            <div id="guideT" class="ub ub-f1 ub-ver up_title_item2 selected" ontouchstart="zy_touch()" onclick="">
                <div class="tx-c uw5p5 um_auto text uf1p uptb_p3">目录</div>
            </div>
            <div id="materialT" class="ub ub-f1 ub-ver up_title_item2" ontouchstart="zy_touch()" onclick="">
                <div class="tx-c uw5p5 um_auto text uf1p uptb_p3">教材</div>
            </div>
            <div id="videoT" class="ub ub-f1 ub-ver up_title_item2" ontouchstart="zy_touch()" onclick="">
                <div class="tx-c uw5p5 um_auto text uf1p uptb_p3">视频</div>
            </div>
			<div id="examT" class="ub ub-f1 ub-ver up_title_item2" ontouchstart="zy_touch()" onclick="">
			   	<div class="tx-c uw5p5 um_auto text uf1p uptb_p3">每课一练</div>
		   	</div>
		   	<div id="commentT" class="ub ub-f1 ub-ver up_title_item2" ontouchstart="zy_touch()" onclick="">
			   	<div class="tx-c uw5p5 um_auto text uf1p uptb_p3">评论</div>
		   	</div>	
		</div>
		<div id="tabSelect" class="uhp1 bc_green" style="position:relative;margin-top:-0.1em;transition: all 0.5s;">
	   		<div class="im_tab_selected ub-img uwp7 uhp7" style="position:absolute;bottom:-0.1em;left:48%;"></div>
	   	</div>
		<div id="redTab" class="">
            <div id="guide" class="ub ub-ver up152e ufp9" style="display:block;overflow:auto;"></div>    
            <div id="material" class="ub ub-ver up1 ufp9">
                <div id="messList" class="ub-f1"></div>
            </div>
            <div id="video" class="ub ub-ver up1 ufp9">
                <div id="videoList" class="ub-f1"></div>
            </div>
			<div id="exam" class="ub ub-ver up1 issue ufp8" style="padding-bottom:5em;"></div>
			<div id="comment" class="ub ub-ver uplr_12 ufp8" style="padding-bottom:5em;">
				<div id="commentList" class="ub ub-ver"></div>
                <div id="footer" class="send_ctn footerEvent bc_wht hide" style="width:100%;">
                    <div class="up1 ub bc_gra">
                        <div id="inputCtn" class="ub-f1 uplr_p5 uc-a1 input_ctn uba b_base um01 c-wh">
                            <input id="msg" type="text" class="t_input input uh2" placeholder="" />
                        </div>
                        <div class="ub ub-ac ub-pc bc_base uplr_2 uc-a ump05" ontouchstart="zy_touch()" onclick="Course.send();">
                            <div class="tx-c send_btn t-wh">发送</div>
                        </div>
                    </div>
                </div>
			</div>
		</div>
	</div>
    <div id="footer0" class="send_ctn footerEvent tx-c uptb_1 t-wh bc_green uw90 um_pert5 ufp7 hide" onclick="Course.practiceSubmit('tip');">
        提交
    </div>
</body>
</html>
<script>
zy_init();
$("#tabSelect").width($("body").width()/5 + "px");
$("#redTab>div").removeClass("ub");
window.uexOnload = function(type){
    Add20ToHeader();
    if (!type) {
        Course.myCourseDetailInit();

        $("#tabTitle>div").click(function(){ 	
        	var i =$("#tabTitle>div").index(this);
        	//$("#tabSelect").css("margin-left",i*($("body").width()/5) + "px");
            var translate = i*($("body").width()/5) + "px";
            if (i != 4){
                $("#tabSelect").css("-webkit-transform","translate(" + translate + ")");
            	$("#redTab>div").css("display","none");
            	$("#redTab>div").eq(i).css("display","block");
                $(".up_title_item2").removeClass("selected");
                $(this).addClass("selected");
            }    
        	if ($(this).attr("id") == "commentT"){
        	    SetLS("myCourseExit", 0);
        		SetLS("mType","comment");
        		/*$(".footerEvent").addClass("hide");
        		$("#footer").removeClass("hide");
    			$("#msg").attr("placeholder","请输入您想说的话......");
    			PCall("study_myCourse_detail","$('#leftBtn').attr('onclick','WinClose()')");*/
                OpenNewWin("study_myCourse_message");
        	} else if ($(this).attr("id") == "examT"){ 
        	    SetLS("myCourseExit", 1);
        		$(".footerEvent").addClass("hide");
        		$("#footer0").removeClass("hide");

        		PCall("study_myCourse_detail","$('#leftBtn').attr('onclick','Course.conclose()')");
        	} else{
        		$(".footerEvent").addClass("hide");
        		PCall("study_myCourse_detail","$('#leftBtn').attr('onclick','WinClose()')");
        	}	
            //解决IOS输入法弹出问题
            $("#msg").focus(function(){
                $("#footer").css("position","absolute");
                window.scrollTo(0,99999); 
            }).blur(function(){
                $("#footer").css("position","fixed");
            });
    	});
		window.scrollTo(0,0); 
    }
     //隐藏滚动条
    uexWindow.setWindowScrollbarVisible(false);
}
</script>